package com.hc.service;

import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl implements  UserService{
    @Override
    public boolean validateUser(String userName, String password) {
        System.out.println("UserServiceImpl类的validateUser方法被调用");
        if (userName.equals("admin") && password.equals("123456")){
            return true;
        }
        return false;
    }
}
